package cn.itcast.usermanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.itcast.usermanage.pojo.User;

public interface UserMapper {
	/**
	 * 根据id获取User信息
	 * @return
	 */
	public User queryUserById(Long id);

	public List<User> queryUserByPages(@Param("start")int start, @Param("size")Integer size);

	public Long queryTotal();

	public List<User> queryAll();
	
	/**
	 * 新增用户
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public int addUser(User user) ;

	public int updateUser(User user);

	public int deleteUser(@Param("ids")String[] ids) throws Exception;
	
	
}
